import 'package:flutter/material.dart';

class MineManageDemo extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return new _MineManageDemoState()
    ;
  }

}

class _MineManageDemoState extends State<MineManageDemo> {

  bool _active = false;

  void _handleTap() {
    setState(() {
      _active = !_active;
    });
  }

  @override
  Widget build(BuildContext context) {
    var mineManage = new GestureDetector(
      onTap: _handleTap,
      child: new Container(
        child: new Center(
          child: new Text(_active ? 'active' : 'inactive',
            style: new TextStyle(fontSize: 32.0, color: Colors.white),),
        ),
        width: 200.0,
        height: 200.0,
        decoration: new BoxDecoration(
          color: _active ? Colors.lightGreen[600] : Colors.grey[600],
        ),
      ),
    );

    return new Scaffold(
      appBar: new AppBar(title: new Text('自己管理状态'),),
      body: mineManage ,
    );
  }
}